package uk.ootf.spring3.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HelloWorldController {

	private static final String MESSAGE = "Hello World, this is Ben";
	
	@RequestMapping("/hello")
	public ModelAndView helloWorld() {
		return new ModelAndView("hello", "message", MESSAGE);		
	}
	
	
}
